package com.masc.gurr.model;

import java.util.HashMap;
import java.util.Map;

public class SessionInfo {
	private String fStrUin;
	private ProtocolType fProtocolType;
	private Map<String, Integer> fMapUinSid;
	private int fIntCounter;
	
	public SessionInfo(String pStrUin, ProtocolType pProtocolType) {
		fStrUin = pStrUin;
		fProtocolType = pProtocolType;
		fMapUinSid = new HashMap<String, Integer>();
	}

	public String getUin() {
		return fStrUin;
	}

	public ProtocolType getProtocolType() {
		return fProtocolType;
	}

	public int getSid(String pStrRecipient) {
		return fMapUinSid.get(pStrRecipient);
	}
	
	public Map<String, Integer> getMapUinSid() {
		return fMapUinSid;
	}
	
	public void addSid(String pStrRecipient, int pIntSid) {
		fMapUinSid.put(pStrRecipient, pIntSid);
	}

	public int getCounter() {
		return fIntCounter;
	}

	public void setCounter(int pIntCounter) {
		this.fIntCounter = pIntCounter;
	}
	
}
